<!DOCTYPE html>
<html th:replace="~{layout :: layout(~{::title}, ~{::section})}">
<head>
<title>文章分类编辑页面</title>

</head>
<body>
<section>
	<form th:action="@{/admin/ariclecat/edit}" method="post">
		<input type="hidden" name="id" th:value="${cat?.id}">
		<div class="row">
			<div class="col-xs-2"
				 style="height: 35px; display: flex; justify-content: flex-end; line-height: 35px">
				分类名称</div>
			<div class="col-xs-6">
				<input class="form-control" type="text" placeholder="请输入文章分类名称"
					   name="catName" th:value="${cat?.catName}">
			</div>
			<div class="col-xs-4"></div>
		</div>

		<div class="row">
			<div class="col-xs-2"
				 style="height: 35px; display: flex; justify-content: flex-end; line-height: 35px">
				父编号</div>
			<div class="col-xs-6">
				<input class="form-control" type="number"
					   name="parentId" th:value="${cat?.parentId==null? 0:cat.parentId}" >
			</div>
			<div class="col-xs-4"></div>
		</div>
		<div class="row">
			<div class="col-xs-2"
				 style="height: 35px; display: flex; justify-content: flex-end; line-height: 35px">
				排序</div>
			<div class="col-xs-6">
				<input class="form-control" type="number"
					   name="sortOrder" th:value="${cat?.sortOrder==null?50:cat.sortOrder}">
			</div>
			<div class="col-xs-4"></div>
		</div>

		<div class="row">
			<div class="col-xs-2"
				 style="height: 35px; display: flex; justify-content: flex-end; line-height: 35px">
				导航菜单？</div>
			<div class="col-xs-6">
				<select class="form-control" name="showInNav">
					<option value="0">否</option>
					<option value="1">是</option>

				</select>
			</div>
			<div class="col-xs-4"></div>
		</div>

		<div class="row">
			<div class="col-xs-2"
				 style="height: 35px; display: flex; justify-content: flex-end; line-height: 35px">
			</div>
			<div class="col-xs-6">
				<button class="btn btn-primary btn-block" type="submit">保存</button>
			</div>
			<div class="col-xs-4"></div>
		</div>

	</form>

</section>

</body>
</html>